<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="../js/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p v-show = 'isshow'>显示或隐藏标签</p>
            <input type="button"  v-model ='val' @keyup.13='isshow = !isshow' >

        </div>
        <script>
            var vm = new Vue({
                el: '#app',
                data: {
                    isshow : true,
                    val : 'enter触发显示或隐藏标签',
                }
            })
        </script>
    </body>
</html>